import request from '@/api/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-project/trackproject/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


export const pageList = (current, size, params) => {
  return request({
    url: '/api/blade-project/trackproject/pageList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/blade-project/trackproject/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (ids) => {
  return request({
    url: '/api/blade-project/trackproject/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

export const add = (row) => {
  return request({
    url: '/api/blade-project/trackproject/saveOrUpdate',
    method: 'post',
    data: row
  })
}

export const getAreas = () => {
  return request({
    url: '/api/blade-dictionary/datadictionaryvalue/get-area-dictionaryvalue-list?dictionaryId=1182473987700060161',
    method: 'get',
  })
}

export const getCitys = (id) => {
  return request({
    url: '/api/blade-dictionary/datadictionaryvalue/get-city-dictionaryvalue-list?dictionaryValueId='+id,
    method: 'get',
  })
}
// 收藏 
export const favourite = (row) => {
  return request({
    url: '/api/blade-project/trackproject/favourite',
    method: 'post',
    params: row
  })
}



